<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<TITLE>Untitled Page</TITLE>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<link href="../css/public.css" rel="stylesheet"
			style="text/css">

		<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
	</HEAD>
	<BODY
		style="BACKGROUND-POSITION-Y: -120px; BACKGROUND-IMAGE: url(../images/background.gif); BACKGROUND-REPEAT: repeat-x">
		<SCRIPT type=text/javascript>
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
function turnpage()
	{
	var curpage=document.getElementById("page").value;
	window.location.href="stock_findStorageByPage.action?pb.pageNo="+curpage;
	}
//]]>
</SCRIPT>
		<SCRIPT src="EmployeeMgr.files/WebResource.axd" type=text/javascript></SCRIPT>
		<SCRIPT src="EmployeeMgr.files/ScriptResource.axd"
			type=text/javascript></SCRIPT>
		<SCRIPT src="/EmployeeMgr.files/ScriptResource(1).axd"
			type=text/javascript></SCRIPT>
		<DIV>
			<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
				<TBODY>
					<TR
						style="BACKGROUND-IMAGE: url(../images/bg_header.gif); BACKGROUND-REPEAT: repeat-x"
						height=24>
						<TD width=10>
							<SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px">
							</SPAN>
						</TD>
						<TD>
							<SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl2.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px">
							</SPAN>
							<SPAN
								style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hb.gif); PADDING-BOTTOM: 10px; COLOR: white; PADDING-TOP: 10px; BACKGROUND-REPEAT: repeat-x; HEIGHT: 47px; TEXT-ALIGN: center; 0 px: ">
								<a id=HyperLink2 href="addStorage.jsp" >库存信息</a> 
								</SPAN><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hr.gif); WIDTH: 60px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></SPAN>
						</TD>
						<TD
							style="BACKGROUND-POSITION: 50% bottom; BACKGROUND-IMAGE: url(../images/main_rc.gif)"
							width=10></TD>
					</TR>
					<TR>
						<TD style="BACKGROUND-IMAGE: url(../images/main_ls.gif)">
							&nbsp;
						</TD>
						<TD
							style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; COLOR: #566984; PADDING-TOP: 10px; BACKGROUND-COLOR: white"
							vAlign=top align="center">
							<DIV>
								<TABLE class=gridView id=ctl00_ContentPlaceHolder2_GridView1
									style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0
									rules=all border=1 >
									<form action="stock_findStockBylike.action" method="post" style="float: left">
									 商品编号：<input type="text" name="sn" value="<s:property value="sn"/>"/>
									 商品名称：<input type="text" name="name" value="<s:property value="name"/>"/>
									 商品规格：<input type="text" name="specifications" value="<s:property value="specifications"/>"/>
									 <input type="submit" value="查询">
									</form>
									<TBODY>
										<TR>
										<TH class=gridViewHeader style="WIDTH: 50px" scope=col>
												&nbsp;
											</TH>
											<TH class=gridViewHeader scope=col>
												库存编号
											</TH>
											<TH class=gridViewHeader scope=col>
												商品编号
											</TH>
											<TH class=gridViewHeader scope=col>
												商品名称
											</TH>
											<TH class=gridViewHeader scope=col>
												商品规格
											</TH>											
											<TH class=gridViewHeader scope=col>
												商品的总数量
											</TH>
											<TH class=gridViewHeader scope=col>
												商品的可操作数量
											</TH>
											<TH class=gridViewHeader scope=col>
												库
											</TH>
											<TH class=gridViewHeader scope=col>
												架
											</TH>
											<TH class=gridViewHeader scope=col>
												层
											</TH>
											<TH class=gridViewHeader scope=col>
												位
											</TH>
											<TH class=gridviewHeader scope=col colspan="2">
												操作
											</TH>
										</TR>
										<s:iterator value="pb.list">
									    	<TR>
									    	<TD class=gridViewItem style="WIDTH: 50px" >
													<IMG src="EmployeeMgr.files/bg_users.gif">
												</TD>
									    	<TD class=gridViewItem><s:property value="Id"/></TD>
									    	<TD class=gridViewItem><s:property value="commodity.sn"/></TD>
									    	<TD class=gridViewItem><s:property value="commodity.name"/></TD>
									    	<TD class=gridViewItem><s:property value="commodity.specifications"/></TD>
									    	<TD class=gridViewItem><s:property value="quantity"/></TD>
									    	<TD class=gridViewItem><s:property value="availablequantity"/></TD>
									    	<TD class=gridViewItem><s:property value="library"/></TD>
									    	<TD class=gridViewItem><s:property value="frame"/></TD>
									    	<TD class=gridViewItem><s:property value="layer"/></TD>
									    	<TD class=gridViewItem><s:property value="bit"/></TD>
												<TD class=gridViewItem>
													<A class=cmdField
														href="stock_getById.action?id=<s:property value="Id"/>">修改</A>
												</TD>
									    	</TR>
									   	<s:if test="pb.list.size==0">
										  <tr>
										      <td>
										     没有找到相关记录!!!!
										      </td>
										  </tr>
										</s:if>
    								</s:iterator>
									  <tr>
									    	<td colspan="12" align="right" class=gridViewHeader>
									    	总共有<s:property value="pb.count"/>条记录
									    	每页<s:property value="pb.pagesize"/>条
									    	当前为第<s:property value="pb.pageon"/>页/
									    	总共有<s:property value="pb.totalpage"/>页
									    	<a href="stock_findStockBylike.action?pb.pageon=1">第一页</a>
									    	<a href="stock_findStockBylike.action?pb.pageon=<s:property value="pb.prep"/>">上一页</a>
									    	<a href="stock_findStockBylike.action?pb.pageon=<s:property value="pb.nextp"/>">下一页</a>
									    	<a href="stock_findStockBylike.action?pb.pageon=<s:property value="pb.totalpage"/>">最后一页</a>
									    	转到第<input type="text" id="page"/>页<input class=textbox type="submit" value="Go" onclick="javascript:turnpage()"/>
									    	</td></tr>
									    	
									    
									</TBODY>
								</TABLE>
							</DIV>
						</TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_rs.gif)"></TD>
					</TR>
					<TR
						style="BACKGROUND-IMAGE: url(../images/main_fs.gif); BACKGROUND-REPEAT: repeat-x"
						height=10>
						<TD style="BACKGROUND-IMAGE: url(../images/main_lf.gif)"></TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_fs.gif)"></TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_rf.gif)">
							
						</TD>
					</TR>
				</TBODY>
			</TABLE>
		</DIV>
		<SCRIPT type=text/javascript>
//<![CDATA[
Sys.Application.initialize();
//]]>
</SCRIPT>
	</BODY>
</HTML>
